home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 May / macformat-050.iso / Shareware Plus / Developers / Find_icon folder / Headers / Find_generic_icon_id.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-25  |  1.5 KB  |  47 lines  |  [TEXT/CWIE]

  1. /*    ---------------------------------------------------------------------------------------------
  2.     Find_icon, code for constructing icon suites for files and folders
  3.     
  4.     by James W. Walker
  5.     preferred e-mail: <mailto:jwwalker@kagi.com>
  6.     alternate e-mail: <mailto:jwwalker@aol.com>, <jim@nisus-soft.com>
  7.     web: <http://users.aol.com/jwwalker/>
  8.     
  9.     File: Find_generic_icon_id.h
  10.     
  11.     Copyright ©1997 by James W. Walker
  12.     
  13.     You may incorporate this sample code into your applications without
  14.     restriction, though the sample code has been provided "AS IS" and the
  15.     responsibility for its operation is 100% yours.
  16.     If you're going to re-distribute the source, please make it clear
  17.     that the code was descended from James W. Walker's code,
  18.     but that you've made changes.
  19.     ---------------------------------------------------------------------------------------------
  20. */
  21.  
  22. #ifndef __TYPES__
  23.     #include <Types.h>
  24. #endif
  25.  
  26. typedef enum
  27. {
  28.     kGenericIconInFinder = 1,
  29.     kGenericIconInSystem
  30. } EGenericIconLocation;
  31.  
  32. short    Find_generic_icon_id(
  33. /* --> */    OSType the_type,
  34. /* <-- */    EGenericIconLocation    *inWhere );
  35. /*    ¶ Certain file types have generic icons, which the Finder uses if
  36.     the file does not have a custom or desktop icon.  This function
  37.     returns the resource ID of this icon, and a flag telling whether
  38.     the icons lives in the Finder instead of the System.  If there is
  39.     no specific icon for this type, kGenericDocumentIconResource will
  40.     be returned.
  41.     
  42.     the_type    input:    file type
  43.     inWhere        output:    indicates whether the icon lives in System or Finder
  44.     
  45.     Returns:    a resource ID number
  46. */
  47.